﻿using System;
using System.Collections;
using System.Collections.Generic;
using DBA.Common;

namespace DBA.Model
{
    /// <summary>
    ///功能描述    :    Em_Study
    ///开发者      :    
    ///建立时间    :    2012-8-28 6:34:48
    ///修订描述    :    
    ///进度描述    :    
    ///版本号      :    1.0
    ///最后修改时间:    2012-8-28 6:34:48
    /// </summary>
        [OrmPropertyAttribute(TableName = "Em_Study",PrimaryKey = "Id",PrimaryKeyType = "IDENTITY",ParameterType = "int")]
    public class Em_Study
    {
        #region 构造函数
        public Em_Study(){}
        
        public Em_Study(int id,int UserID,DateTime BeginTime,DateTime EndTime,string Country,string School,string Demo,string Type,byte UserType)
        {
           this._id = id;
           this._UserID = UserID;
           this._BeginTime = BeginTime;
           this._EndTime = EndTime;
           this._Country = Country;
           this._School = School;
           this._Demo = Demo;
           this._Type = Type;
           this._UserType = UserType;

        }
        #endregion
        
        #region 成员
        private int _id;
        private int _UserID;
        private DateTime _BeginTime;
        private DateTime _EndTime;
        private string _Country;
        private string _School;
        private string _Demo;
        private string _Type;
        private int _UserType;
        #endregion
        
        #region 属性
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "int",ParameterLength = 4,IsNull = "0")]
        public virtual int Id
        {
            get { return _id; }
            set { _id = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "int",ParameterLength = 4,IsNull = "1")]
        public virtual int UserID
        {
            get { return _UserID; }
            set { _UserID = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "datetime",ParameterLength = 16,IsNull = "1")]
        public virtual DateTime BeginTime
        {
            get { return _BeginTime; }
            set { _BeginTime = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "datetime",ParameterLength = 16,IsNull = "1")]
        public virtual DateTime EndTime
        {
            get { return _EndTime; }
            set { _EndTime = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "nvarchar",ParameterLength = 200,IsNull = "1")]
        public virtual string Country
        {
            get { return _Country; }
            set { _Country = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "nvarchar",ParameterLength = 200,IsNull = "1")]
        public virtual string School
        {
            get { return _School; }
            set { _School = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "nvarchar",ParameterLength = 400,IsNull = "1")]
        public virtual string Demo
        {
            get { return _Demo; }
            set { _Demo = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "nvarchar",ParameterLength = 60,IsNull = "1")]
        public virtual string Type
        {
            get { return _Type; }
            set { _Type = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [OrmPropertyAttribute(ParameterType = "int",ParameterLength = 1,IsNull = "0")]
        public virtual int UserType
        {
            get { return _UserType; }
            set { _UserType = value; }
        }
        #endregion
    }
}